package com.handinglian.system.service;


import com.handinglian.system.dto.RoleDto;
import com.handinglian.system.dto.MenuPermissionDto;
import com.handinglian.system.entity.Role;
import com.handinglian.system.param.RoleCreateParam;
import com.handinglian.system.param.RoleUpdateParam;

import java.util.List;

public interface RoleService {
    int createRole(RoleCreateParam roleCreateParam);

    int updateRole(RoleUpdateParam roleUpdateParam);

    int deleteRole(Integer roleId);

    RoleDto loadRole(Integer roleId);

    List<RoleDto> inquireRoleList();

    RoleDto inquireRolePermissionList(Integer roleId);

    List<MenuPermissionDto> getRoleMenuPermissionList(Integer roleId);

    Role getByUserId(Integer userId);
}
